package com.example.ai.repository;

import com.example.ai.model.Answer;
import com.example.ai.model.Question;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

public interface AnswerRepository extends JpaRepository<Answer, Long> {
    Optional<Answer> findByQuestion(Question question);
} 